package com.basic.business.common.shiro;


import com.basic.business.model.entity.SysUser;
import lombok.Data;

import java.io.Serializable;


@Data
public class JwtEntity implements Serializable {
    private static final long serialVersionUID = 8780485262035871316L;
    private Integer loginId;
    private String account;
    private String password;
    private String sessionId;

    public JwtEntity(Integer loginId, String account, String password, String sessionId) {
        this.loginId = loginId;
        this.account = account;
        this.password = password;
        this.sessionId = sessionId;
    }


    public JwtEntity(SysUser user, String sessionId) {
        this.account = user.getName();
        this.password = user.getPassword();
        this.loginId = user.getLoginId();
        this.sessionId = sessionId;
    }
}